package com.jd.impl;

import java.util.ArrayList;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jd.dao.NameDao;
import com.jd.entity.Feedback;
import com.jd.entity.NameEntity;
import com.jd.service.NameSrevice;

@Service
public class NameImpl implements NameSrevice {

	@Autowired
	private NameDao nameDao;
	
	
	@Override
	public ArrayList<NameEntity> getNameList(String name) {
		// TODO Auto-generated method stub
		return nameDao.getNameList(name);
	}

	//游戏字典
	@Override
	public ArrayList<Map<String,String>> getGameList(String pid) {
		// TODO Auto-generated method stub
		return nameDao.getGameList(pid);
	}

	@Override
	public ArrayList<Map<String, String>> getAreaList(String code) {
		// TODO Auto-generated method stub
		return nameDao.getAreaList(code);
	}

	@Override
	public Boolean saveFeedback(Feedback feedback) {
		// TODO Auto-generated method stub
		return nameDao.saveFeedback(feedback);
	}

	@Override
	public NameEntity getName(String id) {
		// TODO Auto-generated method stub
		return nameDao.getName(id);
	}

    @Override
    public NameEntity getNameById(String id) {
        return nameDao.getNameById(id);
    }

}
